package niuke;

import java.util.Scanner;

public class 数字翻转 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuilder sb1 = new StringBuilder(scanner.next());
        StringBuilder sb2 = new StringBuilder(scanner.next());
        String s1 = String.valueOf(sb1.reverse());
        String s2 = String.valueOf(sb2.reverse());
        int n1 = Integer.parseInt(s1);
        int n2 = Integer.parseInt(s2);
        String s3 = String.valueOf(n1+n2);
        Integer i1 = Integer.parseInt(new StringBuilder(s3).reverse().toString());
        System.out.println(i1);
    }
}
